Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
¿Cómo `String["fromCharCode"]` actúa como `String.fromCharCode()` en javascript?

El motor de búsqueda ignorará el [ ] " , por lo que no puedo obtener la respuesta. Hice una prueba y descubrí que resultaron iguales, pero soy un novato de js y no sé cómo se igualan entre sí.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

fromCharCode 'vive' como un método estático del objeto String . Tal método tiene una clave y un valor, visualizado: {fromCharCode: function() {...}} . Puede recuperar (acceder) el método usando su clave directamente String.fromCharCode o el estilo 'bracket' String['fromCharCode'] . Esto es cierto para todos los Objetos.

La notación de corchetes puede ser útil cuando la clave contiene caracteres especiales, consulte el fragmento.

Ver también

 const someObj = { dotNotation: 'hello world', 'non dot Notation': 'hello world you too', }; console.log(someObj.dotNotation); // the last property can not be retrieved with dot notation // console.log(someObj.non dot Notation); // so console.log(someObj['non dot Notation']);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!